home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / maya_miguel_global_groovin.swf / scripts / frame_9 / DoAction.as
Text File  |  2007-09-27  |  3KB  |  83 lines

  1. function CreateSoundClips()
  2. {
  3.    var _loc1_ = _root;
  4.    _loc1_.sound1clip = new Sound();
  5.    _loc1_.sound1clip.attachSound("elephant");
  6.    _loc1_.sound2clip = new Sound();
  7.    _loc1_.sound2clip.attachSound("train");
  8.    _loc1_.sound3clip = new Sound();
  9.    _loc1_.sound3clip.attachSound("tincan");
  10.    _loc1_.sound4clip = new Sound();
  11.    _loc1_.sound4clip.attachSound("water");
  12.    _loc1_.sound8clip = new Sound();
  13.    _loc1_.sound8clip.attachSound("gong");
  14.    _loc1_.sound5clip_1 = new Sound(_loc1_.playhead1);
  15.    _loc1_.sound5clip_1.attachSound("xylo");
  16.    _loc1_.sound5clip_2 = new Sound(_loc1_.playhead2);
  17.    _loc1_.sound5clip_2.attachSound("xylo");
  18.    _loc1_.sound5clip_3 = new Sound(_loc1_.playhead3);
  19.    _loc1_.sound5clip_3.attachSound("xylo");
  20.    _loc1_.sound6clip_1 = new Sound(_loc1_.playhead1);
  21.    _loc1_.sound6clip_1.attachSound("bouzouki");
  22.    _loc1_.sound6clip_2 = new Sound(_loc1_.playhead2);
  23.    _loc1_.sound6clip_2.attachSound("bouzouki");
  24.    _loc1_.sound6clip_3 = new Sound(_loc1_.playhead3);
  25.    _loc1_.sound6clip_3.attachSound("bouzouki");
  26.    _loc1_.sound7clip_1 = new Sound(_loc1_.playhead1);
  27.    _loc1_.sound7clip_1.attachSound("bagpipes");
  28.    _loc1_.sound7clip_2 = new Sound(_loc1_.playhead2);
  29.    _loc1_.sound7clip_2.attachSound("bagpipes");
  30.    _loc1_.sound7clip_3 = new Sound(_loc1_.playhead3);
  31.    _loc1_.sound7clip_3.attachSound("bagpipes");
  32.    _loc1_.sound9clip_1 = new Sound(_loc1_.playhead1);
  33.    _loc1_.sound9clip_1.attachSound("maracas");
  34.    _loc1_.sound9clip_2 = new Sound(_loc1_.playhead2);
  35.    _loc1_.sound9clip_2.attachSound("maracas");
  36.    _loc1_.sound9clip_3 = new Sound(_loc1_.playhead3);
  37.    _loc1_.sound9clip_3.attachSound("maracas");
  38.    _loc1_.beat1clip_1 = new Sound(_loc1_.playhead1);
  39.    _loc1_.beat1clip_1.attachSound("mideast");
  40.    _loc1_.beat1clip_2 = new Sound(_loc1_.playhead2);
  41.    _loc1_.beat1clip_2.attachSound("mideast");
  42.    _loc1_.beat1clip_3 = new Sound(_loc1_.playhead3);
  43.    _loc1_.beat1clip_3.attachSound("mideast");
  44.    _loc1_.beat2clip_1 = new Sound(_loc1_.playhead1);
  45.    _loc1_.beat2clip_1.attachSound("african");
  46.    _loc1_.beat2clip_2 = new Sound(_loc1_.playhead2);
  47.    _loc1_.beat2clip_2.attachSound("african");
  48.    _loc1_.beat2clip_3 = new Sound(_loc1_.playhead3);
  49.    _loc1_.beat2clip_3.attachSound("african");
  50.    _loc1_.beat3clip_1 = new Sound(_loc1_.playhead1);
  51.    _loc1_.beat3clip_1.attachSound("chinese");
  52.    _loc1_.beat3clip_2 = new Sound(_loc1_.playhead2);
  53.    _loc1_.beat3clip_2.attachSound("chinese");
  54.    _loc1_.beat3clip_3 = new Sound(_loc1_.playhead3);
  55.    _loc1_.beat3clip_3.attachSound("chinese");
  56.    _loc1_.beat4clip_1 = new Sound(_loc1_.playhead1);
  57.    _loc1_.beat4clip_1.attachSound("brazillian");
  58.    _loc1_.beat4clip_2 = new Sound(_loc1_.playhead2);
  59.    _loc1_.beat4clip_2.attachSound("brazillian");
  60.    _loc1_.beat4clip_3 = new Sound(_loc1_.playhea3);
  61.    _loc1_.beat4clip_3.attachSound("brazillian");
  62.    _loc1_.soundClipsCreated = true;
  63. }
  64. _root.yoffset1 = 200;
  65. _root.yoffset2 = 246;
  66. _root.yoffset3 = 295;
  67. _root.ybaseline = 190;
  68. _root.ButtonCount = 10;
  69. _root.TotalSounds = 9;
  70. _root.TotalBeats = 4;
  71. _root.GlobalSound = new Sound();
  72. _root.soundClipsCreated = false;
  73. _root.demosound = "";
  74. if(!_root.soundClipsCreated)
  75. {
  76.    _root.CreateSoundClips();
  77. }
  78. if(_root.language eq null or _root.language eq "" or _root.language.length == 0)
  79. {
  80.    _root.language = "english";
  81. }
  82. stop();
  83.